

<?php if(isset($listErrors)): ?>
	<?php foreach($listErrors as $error): ?>
	<?php echo $error; ?>
	<?php endforeach; ?>
<?php endif; ?>

<?php if(isset($listMessages)): ?>
	<?php foreach($listMessages as $message): ?>
	<?php echo $message; ?>
	<?php endforeach; ?>
<?php endif; ?>

<?php echo form_open("/cp/home/delete/$from"); ?>
<?php echo $pagination; ?>
<table width='100%'>
	<tr>
		<th></th>
		<th>Title</th>
		<th>Enable</th>
	</tr>
	<?php foreach($items as $item): ?>
		<tr>
			<td><input type="checkbox" name="ids[]" value="<?php echo $item->id; ?>"></td>
			<td><a href='<?php echo site_url("cp/home/edit/".$item->id); ?>'><?php echo $item->title; ?></a></td>
			<td><?php echo ($item->enable)?"Yes":"No"; ?></td>
		</tr>
	<?php endforeach; ?>
</table>
<?php echo $pagination; ?>

<input type="submit" name="delete" value="Delete">

<?php echo form_close(); ?>